package com.hs.srm.admin.modules.ssess.entity;

import java.io.Serializable;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import cn.afterturn.easypoi.excel.annotation.Excel;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * @author yanfei
 *
 * @date 2019年4月1日
 * 
 * 月度评估
 */
@Setter
@Getter
@TableName("ssess")
@ToString
public class SsessEntity implements Serializable {

  private static final long serialVersionUID = 1L;
  
  public SsessEntity() {
	super();
  }
  
	
  public static final double JQ_GRADE = 10; //逾期交期总分
  public static final double JH_NUM_GRADE = 10; //预期交货数量总分
  public static final double JG_GRADE = 10; //价格总分
  public static final double FW_GRADE = 20;  //服务总分
  public static final double ZL_GRADE= 60; //质量总分


  /*
   * 月度评估id
  */
  @TableId(value = "mark_id", type = IdType.UUID)
  @TableField("mark_id")
  @Excel(name = "月度评估id", orderNum="1")
  private java.lang.String markId;
  
  /*
   * 价格分数
  */
  @TableField("price_mark")
  @Excel(name = "价格分数", orderNum="2")
  private java.lang.Double priceMark;
  
  /*
   * 交货评分
  */
  @TableField("delivery_time_mark")
  @Excel(name = "交货评分", orderNum="3")
  private java.lang.Double deliveryTimeMark;
  
  /*
   * 品质评分
  */
  @TableField("quality_mark")
  @Excel(name = "品质评分", orderNum="4")
  private java.lang.Double qualityMark;
  
  /*
   * 服务评分
  */
  @TableField("service_mark")
  @Excel(name = "服务评分", orderNum="5")
  private java.lang.Double serviceMark;
  
  /*
   * 创建时间
  */
  @TableField("crea_date")
  @Excel(name = "创建时间", orderNum="6")
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private java.util.Date creaDate;
  
  /*
   * 加权
  */
  @TableField("weight")
  @Excel(name = "加权", orderNum="7")
  private java.lang.Float weight;
  
  /*
   * 平均分
  */
  @TableField("average")
  @Excel(name = "平均分", orderNum="8")
  private java.math.BigDecimal average;
  
  /*
   * 供应商的编码
  */
  @TableField("vendor_code")
  @Excel(name = "供应商的编码", orderNum="9")
  private java.lang.String vendorCode;
  
  /*
   * 供应商名称
  */
  @TableField("vendor_name")
  @Excel(name = "供应商名称", orderNum="10")
  private java.lang.String vendorName;
  
  /*
   * 备注
  */
  @TableField("remark")
  @Excel(name = "备注", orderNum="11")
  private java.lang.String remark;
  
  /*
   * 年度总的分
  */
  @TableField("year_mark")
  @Excel(name = "年度总的分", orderNum="12")
  private java.lang.Float yearMark;
  
  /*
   * 订单号
  */
  @TableField("po_no")
  @Excel(name = "订单号", orderNum="13")
  private java.lang.String poNo;
  
  /*
   * 物料编码
  */
  @TableField("material_code")
  @Excel(name = "物料编码", orderNum="14")
  private java.lang.String materialCode;
  
  /*
   * 工厂
  */
  @TableField("werks")
  @Excel(name = "工厂", orderNum="15")
  private java.lang.String werks;
  
  /*
   * 修改时间
  */
  @TableField("last_update_date")
  @Excel(name = "修改时间", orderNum="16")
  @JsonFormat(pattern = "yyyy-MM-dd hh:ss:mm", timezone = "GMT+8")
  private java.util.Date lastUpdateDate;
  
  /*
   * 修改人
  */
  @TableField("last_updated_by")
  @Excel(name = "修改人", orderNum="17")
  private java.lang.String lastUpdatedBy;
  
  /*
   * 修改人
  */
  @TableField("po_flag")
  @Excel(name = "生产与非生产的标识", orderNum="18")
  private java.lang.String poFlag;
  
  
  /*
   * 交期作为月度评分的月份
  */
  @TableField("delivery_date")
  @Excel(name = "交期作为月度评分的月份", orderNum="19")
  @JSONField(format="yyyy-MM-dd HH:mm:ss")
  private java.util.Date deliveryDate;
  
  
	/*
	 * 收货日期时间
	*/
	@TableField("stock_time")
	@Excel(name = "收货日期时间", orderNum = "20")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private java.util.Date stockTime;
}
